var app = angular.module('queryApp', []);
app.controller('queryController', function($scope, $http) {		

	$http.get(timestamp('qz/query/getInterAddrs/'+getQueryString("id"))).success(function(response){
		$scope.interAddrs=response.data;
		console.log($scope.interAddrs);
	});		
	
		$http.get(timestamp('qz/query/getInterProps/'+getQueryString("id"))).success(function(response){
			$scope.interProps=response.data;
			console.log($scope.interProps);		 
    });
   
    $scope.load=function(){
		$http.get(timestamp('qz/inters/get/'+getQueryString("id"))).success(function(response){
			$scope.inter=response.data;
			console.log($scope.inter);
		});
	};
	  
		$scope.load();
		 
	
		$scope.refreshData=function(){
			$scope.load();
		};
		
		$scope.cancle=function(){
		   redirectUrl('manage/query/','listChan.jsp');
	   }
});